]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Don't update multiline for search results
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Mon, 16 Nov 2020 18:12:25 +0000 (15:12 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Wed, 25 Nov 2020 19:52:50 +0000 (16:52 -0300)
The grid icons in the search results page doesn't expand to
acommodate the multiline label, resulting in the multiline
label to overflow behind the list search results. However,
after 548d3b62d, it was possible to trigger this behavior
with keyboard focus.

Don't update multiline labels for search results.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1509>

js/ui/appDisplay.js

index 322aa3cd7a2993e3516783a63d8729af3a4251d1..1cca533c70d32b706fd3cf36c830ca346dc4982a 100644 (file)
@@ -1475,6 +1475,7 @@ class AppViewItem extends St.Button {
         }
 
         this._otherIconIsHovering = false;
+        this._expandTitleOnHover = expandTitleOnHover;
 
         if (expandTitleOnHover)
             this.connect('notify::hover', this._onHover.bind(this));
@@ -1495,7 +1496,7 @@ class AppViewItem extends St.Button {
     }
 
     _updateMultiline() {
-        if (!this.icon.label)
+        if (!this._expandTitleOnHover || !this.icon.label)
             return;
 
         const { label } = this.icon;